package com.barbeque.mall.service.wx;


import com.barbeque.mall.bean.BasePageInfo;
import com.barbeque.mall.bean.advertise.MarketCoupon;
import com.barbeque.mall.bean.param.CommonData;
import com.barbeque.mall.bean.wx.coupon.BO.WxMarketCouponMyListBo;
import com.barbeque.mall.bean.wx.coupon.WxMarketCoupon;
import com.barbeque.mall.bean.wx.coupon.WxMarketCouponUser;

import java.text.ParseException;
import java.util.List;

public interface WxCouponService {

    CommonData<WxMarketCoupon> queryAllCouponList(BasePageInfo basePageInfo);

    CommonData<WxMarketCoupon> queryMyCouponList(WxMarketCouponMyListBo wxMarketCouponMyListBo);

    CommonData<WxMarketCoupon> queryAvailableCoupon(Integer cartId, Integer grouponRulesId) throws ParseException;

    List<WxMarketCouponUser> selectCouponUser(int userId);

    void insertCouponUserByCouponId(int userId, Integer couponId);

    WxMarketCoupon queryCouponTotalByCouponId(Integer couponId);

    void updateCouponTotalByCouponId(WxMarketCoupon wxMarketCoupon);

    WxMarketCoupon queryCouponByCode(String code);

    List<WxMarketCoupon> getCouponList();
}
